package com.example.service.impl;

import com.example.mapper.ShowMarketMapper;
import com.example.service.ShowMarketService;
import com.example.vo.DataVo;
import com.example.vo.ShowMarketVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.util.List;

/**
 *
 *  ShowMarketServiceImpl.java
 */
@Service
@Transactional
public class ShowMarketServiceImpl implements ShowMarketService {
    @Autowired
    private ShowMarketMapper showMarketMapper;
    @Override
    public ShowMarketVo getTodayShowMarket(Date date) {
        return showMarketMapper.getTodayShowMarketVo(date);
    }

    @Override
    public List<DataVo> listWeekVos(Date start_date, Date end_date) {
        return showMarketMapper.listWeekVos(start_date,end_date);
    }

    @Override
    public List<DataVo> listCategoryVos(Date date) {
        return showMarketMapper.listCategoryVos(date);
    }
}
